// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** delete POST /detection-record/delete */
export async function deleteUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<boolean>('/detection-record/delete', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listAll POST /detection-record/list */
export async function listAllUsingPost(options?: { [key: string]: any }) {
  return request<API.drecord[]>('/detection-record/list', {
    method: 'POST',
    ...(options || {}),
  })
}

/** query GET /detection-record/query */
export async function queryUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.queryUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.drecord[]>('/detection-record/query', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** queryid GET /detection-record/queryid */
export async function queryidUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.queryidUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.drecord[]>('/detection-record/queryid', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** queryTime1 GET /detection-record/queryTime */
export async function queryTime1UsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.queryTime1UsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.drecord[]>('/detection-record/queryTime', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
